public class Test {
    public static void main(String[] args) {
        BinarySearchTree binarySearchTree = new BinarySearchTree();
        int[] array = {30,20,50,40,60};
        for (int i = 0; i < array.length; i++) {
            binarySearchTree.insert(array[i]);
        }

        System.out.println(binarySearchTree.insert(55));
        BinarySearchTree.TreeNode node = binarySearchTree.search(20);
        System.out.println(node.val);

        binarySearchTree.remove(20);
        /*BinarySearchTree.TreeNode node2 = binarySearchTree.search(20);
        System.out.println(node2.val);*/
    }
}
